import * as types from './mutation-types'

const mutations = {
  [types.SELECT_MARK](state, mark) {
    state.selectedMark = mark
  },
  [types.SET_DATA_NAME](state, imgName) {
    state.imgName = imgName
  },
  [types.SET_OVLERLAP_IMGURL](state, ovlerlapImgUrl) {
    state.ovlerlapImgUrl = ovlerlapImgUrl
  },
  [types.SET_TOKEN](state, token) {
    state.token = token
  },
  [types.SET_NAME](state, name) {
    state.name = name
  },
  [types.SET_AVATAR](state, avatar) {
    state.avatar = avatar
  },
  [types.SET_ROLES](state, roles) {
    state.roles = roles
  },
  [types.SET_STEPAS_INDEX](state, stepsIndex) {
    state.stepsIndex = stepsIndex
  },
  [types.SET_DECIPHERING](state, deciphering) {
    state.deciphering = deciphering
  }
}

export default mutations